package com.jlect.swebing.renderers.client;

/**
 * Stores constants related to the events
 *
 * @author Sergey Kozmin
 * @since 26.11.2007 11:16:32
 */
public interface RendererEventConstants {
    public static final int ONBLUR = 0;
    public static final int ONCHANGE = 1;
    public static final int ONCLICK = 2;
    public static final int ONDBLCLICK = 3;
    public static final int ONERROR = 4;
    public static final int ONFOCUS = 5;
    public static final int ONKEYDOWN = 6;
    public static final int ONKEYPRESS = 7;
    public static final int ONKEYUP = 8;
    public static final int ONLOAD = 9;
    public static final int ONLOSECAPTURE = 10;
    public static final int ONMOUSEDOWN = 11;
    public static final int ONMOUSEMOVE = 12;
    public static final int ONMOUSEOUT = 13;
    public static final int ONMOUSEOVER = 14;
    public static final int ONMOUSEUP = 15;
    public static final int ONMOUSEWHEEL = 16;
    public static final int ONSCROLL = 17;
    public static final int UNDEFINED = -1;

    /* Modifier constants */
    public static final int SHIFT_MASK = 1;
    public static final int CTRL_MASK = 1 << 1;
    public static final int META_MASK = 1 << 2;
    public static final int ALT_MASK = 1 << 3;

    /**
     * The Enter key.
     */
    public static final int ENTER = '\n';
    /**
     * The BackSpace key.
     */
    public static final int BACK_SPACE = '\b';
    /**
     * The Tab key.
     */
    public static final int TAB = '\t';
    /**
     * The Escape key.
     */
    public static final int ESCAPE = 27;
    /**
     * The Delete key.
     */
    public static final int DELETE = 127;

}
